package com.hp.service;

import com.hp.bean.Syslog;
import com.hp.mapper.SyslogMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SyslogServiceImp implements SyslogService {
@Resource
private SyslogMapper mapper;
    @Override
    public Syslog selectSyslogById(Integer id) {
        return mapper.selectSyslogById(id);
    }

    @Override
    public List<Syslog> selectSyslogList(Syslog syslog) {
        return mapper.selectSyslogList(syslog);
    }

    @Override
    public int insertSyslog(Syslog syslog) {
        return mapper.insertSyslog(syslog);
    }

    @Override
    public int updateSyslog(Syslog syslog) {
        return mapper.updateSyslog(syslog);
    }

    @Override
    public int deleteSyslogByIds(String ids) {
        return mapper.deleteSyslogByIds(ids);
    }

    @Override
    public int deleteSyslogById(Integer id) {
        return mapper.deleteSyslogById(id);
    }
}
